import { typeUtils } from "@/utils";

/**DatePicker在type为Date时的配置 */
type TimePickerConf = typeUtils.Flatten<
	typeUtils.ObjectMerge<
		{ disabled?: boolean; clearable?: boolean },
		{
			/**非范围选择时的占位内容 */
			placeholder?: string;
		}
	>
>;

/**DatePicker的总配置 */
// type DatePickerConf = typeUtils.XOR<TimePickerConf>;

/**DatePicker的data数据源的类型 */
type TimePickerDataType = number | [number, number];

export type { TimePickerDataType, TimePickerConf };
